package com.Shoping.entity;

public class Product {
    private int pId;//订单详情信息
    private  int aId;//地址主键
    private  String oNmber;//订单号为主键，随机生成

    public Product(int pId, int aId, String oNmber) {
        this.pId = pId;
        this.aId = aId;
        this.oNmber = oNmber;
    }

    @Override
    public String toString() {
        return "Product{" +
                "pId=" + pId +
                ", aId=" + aId +
                ", oNmber='" + oNmber + '\'' +
                '}';
    }

    public void setpId(int pId) {
        this.pId = pId;
    }

    public void setaId(int aId) {
        this.aId = aId;
    }

    public void setoNmber(String oNmber) {
        this.oNmber = oNmber;
    }

    public int getpId() {
        return pId;
    }

    public int getaId() {
        return aId;
    }

    public String getoNmber() {
        return oNmber;
    }

    public Product() {
    }
}
